package com.example.service_consumer.remoteService;

import com.example.service_consumer.config.FeignConfig;
import com.example.service_consumer.fallback.FallbackRemoteCall;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

@FeignClient(contextId = "providerService", name = "service-provider",configuration = FeignConfig.class,fallbackFactory = FallbackRemoteCall.class) //@FeignClient(contextId = "providerService", name = "service-provider")
public interface ProviderService {
    @GetMapping(value = "/provider/openfeign")
    public String hello();

    @GetMapping(value = "/provider/timeOut")
    public String requestTimeOut();

}
